home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / rayfiles / rsdefs / textures / stdtxtr.rh < prev   
Text File  |  1994-08-09  |  3KB  |  75 lines

  1. /************************************************************************
  2.  *
  3.  *      Texture.rh
  4.  *
  5.  *      This an #include file for the Rayshade Standard Header
  6.  *    Files.  It defines the textures in the package.
  7.  *
  8.  *    Please do not edit this file, or any of the other files in
  9.  *    this package!  Make additions to these in your own separate
  10.  *    file.  If you think you have something that should be added
  11.  *    permanently, please send it to Larry Coffin and/or David
  12.  *    DeBry (email addresses listed below).  If we include it in
  13.  *    the next release, we'll put your name in the contributor's
  14.  *    list.
  15.  *
  16.  *      Contributors (in alphabetical order):
  17.  *          Larry Coffin <lcoffin@clciris.chem.umr.edu>
  18.  *          David DeBry <ddebry@dsd.es.com>
  19.  *          Stuart Warmink <sw@groucho.att.com>
  20.  */
  21.  
  22. #ifndef RSHF_TEXTURE
  23. #define RSHF_TEXTURE
  24.  
  25. /************************************************************************
  26.  
  27.     As of now, we don't have any texture standard defined.  A lot
  28. texturing is done by images -- those you'll have to FTP from some site
  29. that carries pictures for use as textures.  (I'd suggest starting your
  30. search at ftp.ncsa.uiuc.edu in the pub/textures area.)
  31.  
  32.     However, rayshade allows for texture conglomeration.  Larry
  33. Coffin suggests that we make up some standard ones like this:
  34.  
  35. #define RSTcement texture bump .23                      \
  36.                         texture bump 1 scale .3 .5 .2   \
  37.                         texture blotch .2 RSSgray()     \
  38.                         texture blotch 0 RSSblack()     \
  39.                                 scale .1 .1 .1
  40.  
  41.  
  42.     Since a lot of textures depend on the base surface we could
  43. even have something like:
  44.  
  45. #define RSTnamed_cement(surf)  object RSSgray_med() surf                \
  46.                                         texture bump.23                 \
  47.                                         texture bump 1 scale .3 .5 .2   \
  48.                                         ...
  49.  
  50.     We could even include parameters for changing the textures
  51. attributes like surface combinations or transformations (rotations,
  52. scalings, etc.) as long as the parameters don't make the overall
  53. useage more complex.
  54.  
  55.     In any case, we're open to suggestions.  Thanks.
  56.     
  57. ************************************************************************/
  58.  
  59.  
  60. /* here are some trial textures implemented as suggested above */
  61.  
  62. #define RSTnamed_marb_check1(obj,sc) object RSStest_white() obj        \
  63.     texture marble                            \
  64.         RSMscale((sc/3.0))                    \
  65.     texture checker RSStest_burgundy()                \
  66.         RSMscale(sc)
  67.  
  68.  
  69. #define RSTlightgray_marb(sx,sy,sz)                        \
  70.     texture marble RSDEFS/Textures/soap.map                \
  71.         scale (sx) (sy) (sz)
  72.  
  73.  
  74. #endif /* ifndef RSHF_SURFS */
  75.